<ui:composition xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui"
	template="/layout/page/form/page-fieldset-template.xhtml">

	<ui:param name="pvb" value="#{commonContentViewBean.parent}" />
	<ui:param name="pageViewBean" value="#{commonContentViewBean}" />
	<ui:param name="compId" value="#{pageViewBean.id}" />
	<ui:param name="winTitle" value="新建内容" />

<ui:define name="formContent">
		<h:panelGroup style="float: right;">
			<h:outputText value="标题：" />
		</h:panelGroup>
		<h:panelGroup style="float: left;">
			<h:inputText id="parentTitle" value="#{pageViewBean.helpTitle}"
				required="true" />
		</h:panelGroup>
		<h:panelGroup style="float: right;">
			<h:outputText value="关键字：" />
		</h:panelGroup>
		<h:panelGroup style="float: left;">
			<h:inputText id="keyWord" value="#{pageViewBean.keyWord}"
				required="true" />
		</h:panelGroup>
		<h:panelGroup style="float: right;">
			<h:outputText value="内容：" />
		</h:panelGroup>
		<h:panelGroup style="float: left;">
		<p:editor language="zh_CN" disabled="false" title="内容" id="contentBody" value="#{pageViewBean.contentBody}" style="width:90%"/>  
		</h:panelGroup>
		
		<h:panelGroup style="float: right;">
			<center>
      			<p:commandButton actionListener="#{helpContentAction.update}"
				title="保存"
				oncomplete="#{commonContentViewBean.id}_dialog.hide();"
				image="./img/icons/add.png" value="保存" style="margin:5px;"
				update="#{pvb.id}_rightMain">
				<h:inputHidden value="#{pageViewBean.id}" />
			</p:commandButton></center>
   			 </h:panelGroup> 
   			 	<h:panelGroup style="float: left;">	 <center>
				<p:commandButton title="关闭"  type="button" onclick="#{commonContentViewBean.id}_dialog.hide();" image="./img/icons/cancel.png"
				value="关闭" style="margin:5px;">
			</p:commandButton></center>
			</h:panelGroup>
			
		
		

	</ui:define>

</ui:composition>